package home_work2;

public class Person {
private String name;
private int age;
private String gender;
private int salary;
public Person() {}
public Person(String name1,int age1,String gender1,int salary1) {
	name=name1;
	age=age1;
	gender=gender1;
	salary=salary1;
}
public  String toString() {
	return name+","+age+","+gender+","+salary;
}
public boolean equals( Person obj) {
	return(this.name==obj.name);
}
}
